package com.Mt.Serviceimpl;

import com.Mt.Service.Mt_CommodityPurchaseService;
import com.Mt.mapper.Mt_CommodityPurchaseMapper;
import com.Mt.pojo.MtCommodityPurchase;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class Mt_CommodityPurchaseServiceImpl implements Mt_CommodityPurchaseService {

    @Autowired
    private Mt_CommodityPurchaseMapper mtCommodityPurchaseMapper;


    @Override
    public int upd(int num,int id) {
        return mtCommodityPurchaseMapper.upd(num,id);
    }

    @Override
    public int ins(int id, int num) {
        return mtCommodityPurchaseMapper.ins(id,num);
    }

    @Override
    public List<MtCommodityPurchase> selMark() {
        return mtCommodityPurchaseMapper.selMark();
    }

    @Override
    public int delAll() {
        return mtCommodityPurchaseMapper.delAll();
    }

    @Override
    public int delId(int id) {
        return mtCommodityPurchaseMapper.delId(id);
    }
}
